import Layout from '@/layout'

const saleRouter = {
  path: '/sale',
  component: Layout,
  redirect: '/sale/sale_order',
  name: 'Sale',
  meta: {
    title: '销售管理',
  },
  children: [
    {
      path: 'sale_order', 
      name: 'SaleOrder',
      meta: { title: '销售出库单' },
      component: () => import('@/views/sale/sale_order'),
    },
    {
      path: 'sale_receipt', 
      name: 'SaleReceipt',
      meta: { title: '销售收款单' },
      component: () => import('@/views/sale/sale_receipt_order'),
    },
    {
      path: 'sale_return', 
      name: 'SaleReturn',
      meta: { title: '销售退货' },
      component: () => import('@/views/sale/sale_return'),
    },
    {
      path: 'sale_bill',
      name: 'SaleBill',
      meta: { title: '销售对账' },
      component: () => import('@/views/sale/sale_bill'), 
    },
    
  ]
}

export default saleRouter